package com.uvt.agenda.commands;

import com.uvt.agenda.Event;
import com.uvt.agenda.EventsProvider;

/**
 * Created by oana on 02/02/14.
 * 11:26
 */
public class AddEventCommand implements Command {
    private Event event;
    public AddEventCommand(Event event) {
        this.event = event;
    }

    @Override
    public void execute() {
        EventsProvider.getInstance().addNewEvent(event);
    }
}
